import { request } from '@/utils/request';

/**
 * 获取字典树
 * @param params 请求参数
 * @returns 字典树
 */
export const getDictTree = (params: any) => {
  return request.get({
    url: '/platform/dict/dictTree',
    params,
  });
};

/**
 * 获取字典分页
 * @param params 请求参数
 * @returns 字典分页
 */
export const getDictPage = (params: any) => {
  return request.get({
    url: '/platform/dict/page',
    params,
  });
};
